﻿@using Models.WebSite_HaiSheng 
@model List<Image>
@{
    ViewBag.Title = "Index";
}

@(Html.Telerik().Grid<Image>(Model).Name("Image")
                .DataKeys(keys =>
                {
                    keys.Add(s => s.ID);
                })
                .Columns(c =>
                {
                    c.Bound(item => item.ImageName).Width(200);
                    c.Bound(item => item.ImageUrl).Width(400);
                    c.Bound(item => item.ID).Title("操作").Template(@<span>
                    <a href=@Url.Content("~/Image/Edit/" + item.ID) >编辑</a> | <a href=@Url.Content("~/Image/Details/" + item.ID)>详细</a>  | <a href=@Url.Content("~/Image/delete/" + item.ID) >删除</a> 
                   </span>);
                })
              
                .Resizable(resizing => resizing.Columns(true))
                .Pageable(p => p.PageSize(20))
                .Sortable()
                .Scrollable(scrolling => scrolling.Height(350))